@import '../../style/themes/index';

@btn-prefix-cls: ~'@{my-prefix}-btn';

.@{btn-prefix-cls} {
  outline: none;
  position: relative;
  display: inline-block;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background-image: none;
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  touch-action: manipulation;
  line-height: 1.5714285714285714;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  height: 32px;
  padding: 4px 15px;
  border-radius: 6px;

  &-default {
    background-color: #fff;
    border-color: #d9d9d9;
    box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
  }

  &-primary {
    color: #fff;
    background-color: #1677ff;
    box-shadow: 0 2px 0 rgb(5 145 255 / 10%);
  }

  &-dangerous {
    background-color: #ff4d4f;
    box-shadow: 0 2px 0 rgb(255 38 5 / 6%);
  }

  //size
  &&-lg {
    font-size: 16px;
    height: 40px;
    padding: 6.42px 15px;
    border-radius: 8px;
  }

  &&-sm {
    font-size: 14px;
    height: 24px;
    padding: 0 7px;
    border-radius: 4px;
  }

  &-link {
    color: #1677ff;

    &:not(:disabled):hover {
      color: #69b1ff;
    }
  }

  &-dashed {
    background-color: #fff;
    border-color: #d9d9d9;
    box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
    border-style: dashed;
  }

  &&-circle {
    min-width: 32px;
    border-radius: 50%;
  }
  &:disabled {
    cursor: not-allowed;
    border-color: #d9d9d9;
    color: rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.04);
    box-shadow: none;
  }
  &-background-ghost {
    color: #fff;
    background-color: transparent;
    border-color: #fff;
    box-shadow: none;
  }
}
